﻿using System;
using System.Collections.Generic;
using YJKElementFinish.ColumnSurface.DataDefinition;

namespace YJKElementFinish.MultiWallEdit.DataDefinition
{
	public class WallTypeGroupInfos
	{
		public string GroupName { get; set; }

		public List<WallTypeLayerInfos> LayerTypeList
		{
			get
			{
				return this.m_LayerTypeList;
			}
			set
			{
				this.m_LayerTypeList = value;
			}
		}

		public WallTypeGroupInfos(WallTypeGroupInfos other)
		{
			this.GroupName = other.GroupName;
			this.m_LayerTypeList = other.LayerTypeList;
		}

		public WallTypeGroupInfos(string groupName, List<WallTypeLayerInfos> layerTypeList)
		{
			this.GroupName = groupName;
			this.m_LayerTypeList = layerTypeList;
		}

		public WallTypeGroupInfos DeepClone()
		{
			List<WallTypeLayerInfos> list = new List<WallTypeLayerInfos>();
			foreach (WallTypeLayerInfos wallTypeLayerInfos in this.m_LayerTypeList)
			{
				list.Add(wallTypeLayerInfos.DeepClone());
			}
			return new WallTypeGroupInfos(this.GroupName, list);
		}

		private List<WallTypeLayerInfos> m_LayerTypeList = new List<WallTypeLayerInfos>();
	}
}
